package pers.mobian.springseventh;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Date 2021/7/18 17:35
 * @Created mobian
 * @Description @Bean方式创建
 */
public class MainTest4 {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
		System.out.println(context.getBean("mobian666"));
	}
}
